package com.hjb.service.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hjb.service.domain.common.CommonKeyValue;
import com.hjb.service.domain.common.CommonKeyValueExample;
import com.hjb.service.mybatis.BaseMapper;

public interface CommonKeyValueMapper extends BaseMapper<CommonKeyValue> {
    int countByExample(CommonKeyValueExample example);

    int deleteByExample(CommonKeyValueExample example);

    List<CommonKeyValue> selectByExample(CommonKeyValueExample example);

    int updateByExampleSelective(@Param("record") CommonKeyValue record, @Param("example") CommonKeyValueExample example);

    int updateByExample(@Param("record") CommonKeyValue record, @Param("example") CommonKeyValueExample example);

    /**
     * 根据type查询列表
     * @param type
     * @return
     */
    List<Map<String,Object>> queryCommonListByType(String type);
}